<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script src="${path}/scripts/verify/yanzheng.js"></script>
<script src="${path}/scripts/verify/yanzheng2.js"></script>
<script src="${path}/scripts/verify/MyJs.js"></script>

 <form  method="post" action="${path }/borrowinfo/borrowinfoAction!saveBorrowinfo.action" onsubmit="return iframeCallback(this, navTabAjaxDone);" id="form1">
	<input type="hidden" name="navTabId" value="${navTabId}"/>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tbody>
            <tr>
                <td class="td_base" style="height: 25px">
                    <input type="submit" name="SaveBtn" value="保存" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;SaveBtn&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="SaveBtn" accesskey="s" class="mybutton" />
                    <input type="button" name="BackBtn" value="关闭" class="close" />&nbsp;
                </td>
                <td class="td_base">
                </td>
            </tr>
            <tr>
                <td colspan="2" valign="top" align="center">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%" class="form">
                        <tr>
                            <td class="form-item" style="width: 20%">
                                借用日期：
                            </td>
                            <td style="width: 30%">
                                 <input name="borrowinfo.startTime" value="${borrowinfo.startTime }" type="text" id="jyrq" class="date textInput readonly valid" readonly="true"  id="bxrq"  style="width:86%;" /><font color="red">*</font>
                           		 <a class="inputDateButton" href="javascript:;">选择</a>
                            </td>
                            <td class="form-item" style="height: 25; width: 20%">
	                             
                            </td>
                            <td style="width: 30%">
                            	 <!-- <input type="text" style="display:none" name="borrowinfo.state" value="1010105" /> -->
                            </td>
                        </tr>
                        <tr>
                            <td class="form-item">
                                借用部门：
                            </td>
                            <td>
							  <input type="hidden" size="32"  name="borrowinfo.deptId" bringBackName = "user.deptId" value="${ user.deptId }" />
				 			  <input type="text" id="jybm" name="borrowinfo.department"   bringBackName = "user.deptName" maxlength="32" size="30" value="${user.deptName }"/>
							  <input type="text" style="display:none" name="borrowinfo.state" value="1010105" />
                            </td>
                            <td class="form-item" style="height: 25;">
                                借用人：
                            </td>
                            <td>
                                <%-- <input name="borrowinfo.borrower" value="${borrowinfo.borrower }" type="text" id="userName1" class="required"  style="width:90%;float: left;" /> --%>
								<input type="hidden" size="32" name="borrowinfo.userId"   bringBackName = "user.id" value="${ user.id }" />
								 <input type="text" name="borrowinfo.borrower" id="userName1" class="required" bringBackName = "user.userName" maxlength="32" size="30" value="${user.userName }" style="float:left";/>
								 <a style="z-index: 9999" class="btnLook" href="${path }/um/user!lookUpUser.action" lookupGroup="user">查找带回</a>
                            </td>
                        </tr>
                     
                         <tr>
                            <td class="form-item">
                                借用理由及用途：
                            </td>
                            <td colspan="3">
                                <textarea name="borrowinfo.reason" value="${borrowinfo.reason }"rows="2" cols="20" id="jyly" class="required" style="width:96%;"></textarea>
                            </td>
                        </tr>
                          <tr>
                           <td class="form-item">
                                        备注：
                           </td>
                           <td colspan="3">
                               <textarea  name="borrowinfo.remark" value="${borrowinfo.remark }" rows="2" cols="20" id="jybz"  style="width:96%;"></textarea>
                           </td>
                       </tr>
                       <tr>
                      		 <jsp:include page="/comon/listAsset.jsp" />
                       </tr>
                    </table>
                   
                </td>
            </tr>
        </tbody>
	  </table>
    
    <!--隐藏label-->
    
    <div id="ValidationSummary2" style="color:Red;display:none;">

</div>
    <span id="RequiredFieldValidator3" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RequiredFieldValidator5" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RequiredFieldValidator1" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RequiredFieldValidator2" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    <span id="RegularExpressionValidator17" style="color:Red;display:none;"></span>
    <span id="RequiredFieldValidator4" style="color:Red;visibility:hidden;">&nbsp;
    </span>
    
<script type="text/javascript">
	
	var Page_ValidationSummaries =  new Array(document.getElementById("ValidationSummary2"));
	var Page_Validators =  new Array(document.getElementById("RequiredFieldValidator3"), document.getElementById("RequiredFieldValidator5"), document.getElementById("RequiredFieldValidator1"), document.getElementById("RequiredFieldValidator2"), document.getElementById("RegularExpressionValidator17"), document.getElementById("RequiredFieldValidator4"));
	
</script>

<script type="text/javascript">
	
	var ValidationSummary2 = document.all ? document.all["ValidationSummary2"] : document.getElementById("ValidationSummary2");
	ValidationSummary2.showmessagebox = "True";
	ValidationSummary2.showsummary = "False";
	var RequiredFieldValidator3 = document.all ? document.all["RequiredFieldValidator3"] : document.getElementById("RequiredFieldValidator3");
	RequiredFieldValidator3.controltovalidate = "jyrq";
	RequiredFieldValidator3.errormessage = "请选择借用日期";
	RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator3.initialvalue = "";
	var RequiredFieldValidator5 = document.all ? document.all["RequiredFieldValidator5"] : document.getElementById("RequiredFieldValidator5");
	RequiredFieldValidator5.controltovalidate = "yjghrq";
	RequiredFieldValidator5.errormessage = "请选择预计归还日期";
	RequiredFieldValidator5.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator5.initialvalue = "";
	var RequiredFieldValidator1 = document.all ? document.all["RequiredFieldValidator1"] : document.getElementById("RequiredFieldValidator1");
	RequiredFieldValidator1.controltovalidate = "jybm";
	RequiredFieldValidator1.errormessage = "请选择借用部门";
	RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator1.initialvalue = "";
	var RequiredFieldValidator2 = document.all ? document.all["RequiredFieldValidator2"] : document.getElementById("RequiredFieldValidator2");
	RequiredFieldValidator2.controltovalidate = "userName1";
	RequiredFieldValidator2.errormessage = "请选择借用人";
	RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator2.initialvalue = "";
	
	var RequiredFieldValidator4 = document.all ? document.all["RequiredFieldValidator4"] : document.getElementById("RequiredFieldValidator4");
	RequiredFieldValidator4.controltovalidate = "jyly";
	RequiredFieldValidator4.errormessage = "请说明借用理由";
	RequiredFieldValidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
	RequiredFieldValidator4.initialvalue = "";
	
</script>


<script type="text/javascript">


	var Page_ValidationActive = false;
	if (typeof(ValidatorOnLoad) == "function") {
		ValidatorOnLoad();
	}

	function ValidatorOnSubmit() {
		if (Page_ValidationActive) {
			return ValidatorCommonOnSubmit();
		}
		else {
			return true;
		}
	}
			
</script>


</form>